<?php
$config = array(
    'v_login' => array(
        array(
            'field' => 'usu_nick',
            'label' => 'lang:usuario',
            'rules' => 'trim|required|min_length[3]|max_length[100]|xss_clean'
        ),
        array(
            'field' => 'usu_pass',
            'label' => 'lang:pass',
            'rules' => 'trim|required|min_length[6]|max_length[40]|xss_clean'
        )
    ),
    'v_registro' => array(
        array(
            'field' => 'usu_nick',
            'label' => 'lang:usuario',
            'rules' => 'trim|required|min_length[3]|max_length[100]|xss_clean'
        ),
        array(
            'field' => 'usu_pass',
            'label' => 'lang:password',
            'rules' => 'trim|required|min_length[6]|max_length[40]|xss_clean|matches[usu_pass2]'
        ),
        array(
            'field' => 'usu_pass2',
            'label' => 'lang:password',
            'rules' => 'trim|xss_clean'
        ),
        array(
            'field' => 'usu_email',
            'label' => 'lang:email',
            'rules' => 'trim|required|max_length[100]|xss_clean|valid_email'
        ),
        array(
            'field' => 'p_captcha',
            'label' => 'lang:p_captcha',
            'rules' => 'trim|md5|required|matches[p_total]'
        )
    ),
    'v_registro_mini' => array(
        array(
            'field' => 'usu_nick',
            'label' => 'lang:usuario',
            'rules' => 'trim|required|min_length[3]|max_length[100]|xss_clean'
        ),
        array(
            'field' => 'usu_email',
            'label' => 'lang:email',
            'rules' => 'trim|required|max_length[100]|xss_clean|valid_email'
        ),
        array(
            'field' => 'p_captcha',
            'label' => 'lang:p_captcha',
            'rules' => 'trim|md5|required|matches[p_total]'
        )
    ),
    'v_perfil' => array(
        array(
            'field' => 'usu_nick',
            'label' => 'lang:usu_nick',
            'rules' => 'trim|min_length[3]|required|xss_clean'
        ),
        array(
            'field' => 'usu_desc',
            'label' => 'lang:usu_desc',
            'rules' => 'trim|xss_clean'
        ),
        array(
            'field' => 'usu_email',
            'label' => 'lang:usu_email',
            'rules' => 'trim|required|xss_clean|valid_email'
        ),
        array(
            'field' => 'usu_pass',
            'label' => 'lang:contrasena_actual',
            'rules' => 'trim|min_length[6]|max_length[40]|xss_clean|matches[usu_pass2]'
        ),
        array(
            'field' => 'usu_pass2',
            'label' => 'lang:nueva_contrasena',
            'rules' => 'trim|xss_clean'
        )
    ),
    'v_datos_empresa' => array(
        array(
            'field' => 'emp_desc',
            'label' => 'lang:emp_desc',
            'rules' => 'trim|required|xss_clean'
        ),
        array(
            'field' => 'emp_direccion',
            'label' => 'lang:emp_direccion',
            'rules' => 'trim|required|xss_clean'
        ),
        array(
            'field' => 'emp_codigo_postal',
            'label' => 'lang:emp_codigo_postal',
            'rules' => 'trim|xss_clean|numeric'
        ),
        array(
            'field' => 'emp_web',
            'label' => 'lang:emp_web',
            'rules' => 'trim|xss_clean'
        ),
        array(
            'field' => 'emp_telefono',
            'label' => 'lang:emp_telefono',
            'rules' => 'trim|xss_clean|numeric'
        ),
        array(
            'field' => 'emp_fk_municipio',
            'label' => 'lang:emp_fk_municipio',
            'rules' => 'trim|required|xss_clean|numeric'
        )
    ),
    'v_datos_producto' => array(
        array(
            'field' => 'pro_titulo',
            'label' => 'lang:pro_titulo',
            'rules' => 'trim|required|xss_clean'
        ),
        array(
            'field' => 'prd_desc_es',
            'label' => 'lang:prd_desc',
            'rules' => 'trim|required|xss_clean'
        ),
        array(
            'field' => 'pro_precio',
            'label' => 'lang:pro_precio',
            'rules' => 'trim|xss_clean|numeric'
        ),
        array(
            'field' => 'pro_fec_nacimiento',
            'label' => 'lang:pro_fec_nacimiento',
            'rules' => 'trim|xss_clean'
        ),
        array(
            'field' => 'pro_mestizo',
            'label' => 'lang:pro_mestizo',
            'rules' => 'trim|xss_clean'
        ),
        array(
            'field' => 'pro_machos',
            'label' => 'lang:pro_machos',
            'rules' => 'trim|xss_clean'
        ),
        array(
            'field' => 'pro_hembras',
            'label' => 'lang:pro_hembras',
            'rules' => 'trim|xss_clean'
        )
    ),
    'v_mensaje_crear_foro' => array(
        array(
            'field' => 'fme_titulo',
            'label' => 'lang:titulo',
            'rules' => 'trim|required|max_length[255]|xss_clean'
        ),
        array(
            'field' => 'fme_fk_foro_categoria',
            'label' => 'lang:categoria',
            'rules' => 'trim|required|xss_clean'
        ),
        array(
            'field' => 'fme_desc',
            'label' => 'lang:mensaje',
            'rules' => 'trim|required|xss_clean'
        )
    ),
    'v_mensaje_foro' => array(
        array(
            'field' => 'fme_desc',
            'label' => 'lang:mensaje',
            'rules' => 'trim|required|xss_clean'
        )
    )
);
?>
